};
}
+function rectEqual(one, two) {
+ if (one == two)
+ return true;
+
+ if (!one || !two)
+ return false;
+
+ return (one.x == two.x &&
+ one.y == two.y &&
+ one.width == two.width &&
+ one.height == two.height);
+}
+
/**
* @metaWorkspace: a #Meta.Workspace, or null
*/
},
setFullGeometry: function(geom) {
+ if (rectEqual(this._fullGeometry, geom))
+ return;
+
this._fullGeometry = geom;
this._recalculateWindowPositions(WindowPositionFlags.NONE);
},
setActualGeometry: function(geom) {
+ if (rectEqual(this._actualGeometry, geom))
+ return;
+
this._actualGeometry = geom;
if (this._actualGeometryLater)
const OVERRIDE_SCHEMA = 'org.gnome.shell.overrides';
-function rectEqual(one, two) {
- if (one == two)
- return true;
-
- if (!one || !two)
- return false;
-
- return (one.x == two.x &&
- one.y == two.y &&
- one.width == two.width &&
- one.height == two.height);
-}
-
const WorkspacesView = new Lang.Class({
Name: 'WorkspacesView',
},
setFullGeometry: function(geom) {
- if (rectEqual(this._fullGeometry, geom))
- return;
-
this._fullGeometry = geom;
for (let i = 0; i < this._workspaces.length; i++)
},
setActualGeometry: function(geom) {
- if (rectEqual(this._actualGeometry, geom))
- return;
-
this._actualGeometry = geom;
for (let i = 0; i < this._workspaces.length; i++)